package com.fy.tt.service;

import com.fy.tt.entity.Word;
import com.fy.tt.entity.query.SemanticQuery;
import com.fy.tt.entity.query.WordQuery;
import com.fy.tt.entity.vo.WordAndSemanticVo;
import com.fy.tt.entity.vo.WordVo;

import java.util.List;

public interface WordService {
    List<WordVo> getAllWords();
    int getTotalWord(WordQuery wordQuery);
    int addWord(Word word);
    int deleteWord(int id);
    int updateWord(Word word);
    // 分页查询
    List<Word> getPageWords(int pageSize, int current);

    List<WordVo> getConditionPageWords(WordQuery wordQuery, int pageSize, int current);

    List<WordAndSemanticVo> getWordSemantic();

    List<WordAndSemanticVo> getAllWordSemantic();

    List<WordAndSemanticVo> getConditionPageAllWordSemantic(SemanticQuery semanticQuery, int pageSize, int current);

    List<WordVo> getLastSaveWord();

    List<WordAndSemanticVo> getConditionPageWordSemanticDeveloped(SemanticQuery semanticQuery, Integer pageSize, Integer currentPage);
}
